/*
 * Copyright 2022 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * The default animation style sheet used for view transitions.
 * See third_party/blink/renderer/core/view_transition/README.md for details
 */

@namespace "http://www.w3.org/1999/xhtml";


html::view-transition-group(*) {
  animation-duration: 0.25s;
  animation-fill-mode: both;
}

@keyframes -ua-view-transition-fade-in {
  from {
    opacity: 0;
  }
}

html::view-transition-new(*) {
  animation-name: -ua-view-transition-fade-in;
  animation-duration: inherit;
  animation-fill-mode: inherit;
}

@keyframes -ua-view-transition-fade-out {
  to {
    opacity: 0;
  }
}

html::view-transition-old(*) {
  animation-name: -ua-view-transition-fade-out;
  animation-duration: inherit;
  animation-fill-mode: inherit;
}

html::view-transition-image-pair(*) {
  animation-duration: inherit;
  animation-fill-mode: inherit;
}
